package work.mediway.mdm.biz.dto.dict;

import javax.validation.constraints.NotBlank;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author zhongyj <1126834403@qq.com><br/>
 * @date 2020/12/17
 */
@Data
@ApiModel("字典表")
public class DictDTO {

    @ApiModelProperty(value = "字典业务域Code")
    private String businessFieldCode;

    @ApiModelProperty(value = "字典查询参数(为字典Code/字典Desc,可模糊匹配)")
    private String dictParam;

    @ApiModelProperty(value = "字典状态(0/1/-1),默认为1,,表示有效", allowableValues = "1,0,-1", allowEmptyValue = true)
    private String dictStatus;

    @ApiModelProperty(value = "字典表类型(数据来源为/dict/type接口数据的code值)", required = true)
    @NotBlank(message = "字典表类型不能为空")
    private String dictType;

}
